package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.DormitoryRoomDO;
import com.pipi.sso.dao.query.DormitoryRoomQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for DormitoryRoom.
 */
public interface DormitoryRoomManager {
    /**
     * query count by query condition.
     */
    int countByQuery(DormitoryRoomQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(DormitoryRoomQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(DormitoryRoomDO record);

    /**
     * insert selective.
     */
    long insertSelective(DormitoryRoomDO record);

    /**
     * select by query condition.
     */
    List<DormitoryRoomDO> selectByQuery(DormitoryRoomQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<DormitoryRoomDO> selectByQueryWithPage(DormitoryRoomQuery query);

    /**
     * select by primary key.
     */
    DormitoryRoomDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( DormitoryRoomDO record,  DormitoryRoomQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(DormitoryRoomDO record, DormitoryRoomQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(DormitoryRoomDO record);
}